//导航栏icon
import { DatabaseOutlined } from "@ant-design/icons";
//公用fun
import {dataDispose} from '../../../assets/comFun'
//合同列表页面
import ContractList from '../ContractList'
//添加合同页面
import AddContract from '../AddContract'
//合同收款计划页面
import ContractMoneyPlan from '../ContractMoneyPlan'
//合同详情
import ContractListDetails from '../ContractListDetails'

//侧边栏导航-营销管理
const menuLeftContractRouter = [
    {
        key: 'signContract',
        meta: {
            title: "签约",
            icon: <DatabaseOutlined />,
        },
        authority: 'QIANYUE',
        path: "/signContract",
        component: ContractList,
    },
    {
        key: 'underwayContract',
        meta: {
            title: "进行中合同",
            icon: <DatabaseOutlined />,
        },
        authority: 'QIANYUE',
        path: "/underwayContract",
        component: ContractList,
    },
    {
        key: 'historyContract',
        meta: {
            title: "历史合同",
            icon: <DatabaseOutlined />,
        },
        authority: 'QIANYUE',
        path: "/historyContract",
        component: ContractList,
    }
];
//菜单页面
const menuLeftContractRouterPage  = dataDispose(menuLeftContractRouter)
//合同管理全部页面
const contractAllPage = [
    ...menuLeftContractRouterPage,
    {
        path: '/addContract',
        component: AddContract
    },
    {
        path: '/contractMoneyPlan',
        component: ContractMoneyPlan
    },
    {
        path: '/contractListDetails',
        component: ContractListDetails
    },
]


export {
    contractAllPage,
    menuLeftContractRouter
}